<?php

$icecast_tpl="<icecast>
    <limits>
        <clients>".$gl["TARIFF"][$tariff]["listeners"]."</clients>
        <sources>2</sources>
        <threadpool>5</threadpool>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <burst-on-connect>1</burst-on-connect>
        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <source-password>nopassword</source-password>
        <relay-password>nopassword</relay-password>
        <admin-user>".$User."</admin-user>
        <admin-password>".$UserPassword."</admin-password>
    </authentication>

    <hostname>".$gl["serv_server"]."</hostname>

    <listen-socket>
        <port>".$UserPort."</port>
    </listen-socket>

    <mount>
        <mount-name>/nonstop</mount-name>
        <password>".$UserPassword."</password>
        <stream-name>Nonstop Stream</stream-name>
        <genre>Nonstop</genre>
        <charset>cp1251</charset>
    </mount>

    <mount>
        <mount-name>/live</mount-name>
        <password>".$UserPassword."</password>
        <max-listeners>".$gl["TARIFF"][$tariff]["listeners"]."</max-listeners>
        <fallback-mount>/nonstop</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>1</fallback-when-full>
        <stream-name>Live Stream</stream-name>
        <genre>Live</genre>
        <charset>cp1251</charset>
    </mount>

    <fileserve>1</fileserve>

    <paths>
        <basedir>/usr/share/icecast2</basedir>
        <logdir>/var/log/icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <alias source=\"/\" dest=\"/status.xsl\"/>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
      	<loglevel>3</loglevel> 
      	<logsize>10000</logsize>
    </logging>

    <security>
        <chroot>0</chroot>
    </security>
</icecast>";

?>
